using System.Collections;
using UnityEngine;

public class GameSettings : MonoBehaviour
{
	[SerializeField]
	private RectTransform[] _scaledUI;

	private void Start()
	{
	}

	private IEnumerator PerformancePreparation()
	{
		if ((float)(Screen.height / Screen.width) > 1.9f)
		{
			Camera.main.fieldOfView = 67f;
			RectTransform[] scaledUI = _scaledUI;
			foreach (RectTransform obj in scaledUI)
			{
				obj.offsetMax = new Vector2(0f, -120f);
				obj.offsetMin = new Vector2(0f, 120f);
			}
		}
		else
		{
			Camera.main.fieldOfView = 60f;
		}
		yield return new WaitForSeconds(1f);
	}
}
